package com.md.common.exception;

/**
 * 功能描述：API异常类
 *
 * @author lujianping@kuparts.com
 * @version 1.0
 * @date 2018-7-13 10:22
 * @since JDK 1.8
 */
public class ApiException extends BaseBizException {

    private static final long serialVersionUID = -1940051816333982823L;

    public ApiException() {
    }

    public ApiException(int code, String msg, Object... objects) {
        super(code, msg, objects);
    }

    public ApiException(int code, Object... objects) {
        super(code, objects);
    }

    public ApiException print() {
        return new ApiException(this.code, this.message);
    }
}
